import request from '@/utils/request'

const api = {
  managerList: '/managerProvider/lists',
  managerAdd: '/managerProvider/add',
  magangerEdit: '/managerProvider/edit',
  magangerDel: '/managerProvider/delete',
  storeList: '/notControl/store',
  managerDetail: '/managerProvider/edit',
  managerInfo: '/notControl/managerInfo'
}

export function managerInfo (parameter) {
  return request({
    url: api.managerInfo,
    method: 'get',
    params: parameter
  })
}

export function managerDetail (parameter) {
  return request({
    url: api.managerDetail,
    method: 'get',
    params: parameter
  })
}

export default api

export function managerList (parameter) {
  return request({
    url: api.managerList,
    method: 'get',
    params: parameter
  })
}

export function managerEdit (parameter) {
  return request({
    url: api.magangerEdit,
    method: 'post',
    data: parameter
  })
}

export function managerAdd (parameter) {
  return request({
    url: api.managerAdd,
    method: 'post',
    data: parameter
  })
}

export function managerDel (parameter) {
  return request({
    url: api.magangerDel,
    method: 'get',
    params: parameter
  })
}

export function getStoreList (parameter) {
    return request({
      url: api.storeList,
      method: 'get',
      params: parameter
    })
  }
